package com.xjzd.demo;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration(proxyBeanMethods = false)
public class JavaConfig {

    @Bean
    public User user(Student student) {
        System.out.println(student);
        System.out.println(student);
        return new User();
    }

    @Bean
    public Student student() {
        return new Student();
    }
}
